package cn.org.rookie.jeesdp.system.web.system;

import cn.org.rookie.jeesdp.system.entity.Menu;
import cn.org.rookie.jeesdp.system.mapper.MenuMapper;
import cn.org.rookie.jeesdp.system.service.MenuService;
import cn.org.rookie.jeesdp.web.BaseController;
import cn.org.rookie.jeesdp.web.response.Response;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("system/menu")
public class MenuController extends BaseController<Menu, String, MenuService, MenuMapper> {

    @RequestMapping("list")
    public Response menus() {
        return Response.success().data(service.selectAll());
    }

}
